package com.cskaoyan.factory;

import com.cskaoyan.bean.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author stone
 * @date 2022/07/05 17:11
 */
public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        User user = new User("factorybean");
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
